package org.jeecg.modules.grand.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: grade
 * @Author: jeecg-boot
 * @Date:   2021-05-07
 * @Version: V1.0
 */
@Data
@TableName("grade")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="grade对象", description="grade")
public class Grade implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "学号")
    private String id;
    /**学号*/
    @Excel(name = "学号", width = 15)
    @ApiModelProperty(value = "学号")
    private String workNo;
	/**姓名*/
	@Excel(name = "姓名", width = 15)
    @ApiModelProperty(value = "姓名")
    private String name;
	/**课程*/
	@Excel(name = "课程", width = 15, dictTable = "course", dicText = "course_name", dicCode = "id")
	@Dict(dictTable = "course", dicText = "course_name", dicCode = "id")
    @ApiModelProperty(value = "课程")
    private String courseId;
	/**成绩*/
	@Excel(name = "成绩", width = 15)
    @ApiModelProperty(value = "成绩")
    private Double score;
	/**类型：1、上机;2、考试*/
	@Excel(name = "类型：1、上机;2、考试", width = 15, dicCode = "course_type")
	@Dict(dicCode = "course_type")
    @ApiModelProperty(value = "类型：1、上机;2、考试")
    private String examType;
	/**总提交次数*/
	@Excel(name = "总提交次数", width = 15)
    @ApiModelProperty(value = "总提交次数")
    private Integer submitTimes;
	/**成功次数*/
	@Excel(name = "成功次数", width = 15)
    @ApiModelProperty(value = "成功次数")
    private Integer successTimes;
    /**考试时间*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "examTime")
    private Date examTime;
	/**createTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "createTime")
    private Date createTime;
	/**createBy*/
    @ApiModelProperty(value = "createBy")
    private String createBy;
	/**updateTime*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "updateTime")
    private Date updateTime;
	/**updateBy*/
    @ApiModelProperty(value = "updateBy")
    private String updateBy;
}
